part of 'chat_bloc.dart';

abstract class THChatEvent extends Equatable {
  const THChatEvent();
}

class THChatInitEvent extends THChatEvent {
  THChatInitEvent();

  @override
  List<Object> get props => [];
}

class THChatMessageListEvent extends THChatEvent {
  final String targetId;

  THChatMessageListEvent({this.targetId});

  @override
  List<Object> get props => [targetId];
}

class THChatSendMessageEvent extends THChatEvent {
  final String targetId;

  final String content;

  THChatSendMessageEvent({@required this.targetId, @required this.content});

  @override
  List<Object> get props => [targetId, content];
}

class THChatReceiverMessageEvent extends THChatEvent {
  final THChatModel chatModel;

  THChatReceiverMessageEvent({@required this.chatModel});

  @override
  List<Object> get props => [chatModel];
}
